<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Pardus - Settings</title>
<link rel="stylesheet" href="pardus.css" type="text/css" />
<script type="text/javascript">
//<![CDATA[
var usehttps;
var logoutonhide;
var navsizehor;
var navsizever;
var partialrefresh;
var shipanimation;
var shiprotation;
var mobilechat;
var fullscreen;
var showzoomcontrols;
var rememberpageproperties;
function init()
{
    usehttps = document.getElementById('usehttps');
    logoutonhide = document.getElementById('logoutonhide');
    navsizehor = document.getElementById('navsizehor');
    navsizever = document.getElementById('navsizever');
    partialrefresh = document.getElementById('partialrefresh');
    shipanimation = document.getElementById('shipanimation');
    shiprotation = document.getElementById('shiprotation');
    mobilechat = document.getElementById('mobilechat');
    fullscreen = document.getElementById('fullscreen');
    showzoomcontrols = document.getElementById('showzoomcontrols');
    rememberpageproperties = document.getElementById('rememberpageproperties');
    var settingsStr = new String(JavaSettings.getSettings());
    var settings = settingsStr.split(',');
    usehttps.checked = (settings[0] == 'true');
    logoutonhide.checked = (settings[1] == 'true');
    for (var i = 0; i < navsizehor.options.length; i++) {
        if (navsizehor.options[i].value == settings[2]) {
            navsizehor.selectedIndex = i;
            break;
        }
    }
    for (var i = 0; i < navsizever.options.length; i++) {
        if (navsizever.options[i].value == settings[3]) {
            navsizever.selectedIndex = i;
            break;
        }
    }
    partialrefresh.checked = (settings[4] == 'true');
    shipanimation.checked = (settings[5] == 'true');
    shiprotation.checked = (settings[6] == 'true');
    mobilechat.checked = (settings[7] == 'true');
    fullscreen.checked = (settings[8] == 'true');
    showzoomcontrols.checked = (settings[9] == 'true');
    rememberpageproperties.checked = (settings[10] == 'true');
}
function setUsehttps()
{
    JavaSettings.setUseHttps(usehttps.checked);
}
function setLogoutonhide()
{
    JavaSettings.setLogoutOnHide(logoutonhide.checked);
}
function setNavsizehor()
{
    JavaSettings.setNavSizeHor(navsizehor.options[navsizehor.selectedIndex].value);
}
function setNavsizever()
{
    JavaSettings.setNavSizeVer(navsizever.options[navsizever.selectedIndex].value);
}
function setPartialrefresh()
{
    JavaSettings.setPartialRefresh(partialrefresh.checked);
}
function setShipanimation()
{
    JavaSettings.setShipAnimation(shipanimation.checked);
}
function setShiprotation()
{
    JavaSettings.setShipRotation(shiprotation.checked);
}
function setMobilechat()
{
    JavaSettings.setMobileChat(mobilechat.checked);
}
function setFullscreen()
{
    JavaSettings.setFullScreen(fullscreen.checked);
}
function setShowzoomcontrols()
{
    JavaSettings.setShowZoomControls(showzoomcontrols.checked);
}
function setRememberpageproperties()
{
    JavaSettings.setRememberPageProperties(rememberpageproperties.checked);
}
function doClearcache()
{
    JavaSettings.clearCache();
}
//]]>
</script>
</head>
<body>
<table align='center' cellpadding='4' class='std_table'>
<tr><th>Settings</th></tr>
<tr><td align='center'><br /><br/>
<form id='settingsform' action='settings.html' method='post'>
<table align='center' class='listing_table'>
<tr class='cl0'>
<td align='left'><span class='cfgheader'>Use HTTPS</span><br /><span class='cfgdesc'>Uncheck if you have login problems or do not need a secure connection.</span></td>
<td align='right'><input type='checkbox' name='usehttps' id='usehttps' value='usehttps' onclick='setUsehttps();' /></td>
</tr>
<tr class='cl1'>
<td align='left'><span class='cfgheader'>Log out on hide</span><br /><span class='cfgdesc'>Logs you out of Pardus whenever the app is in the background.</span></td>
<td align='right'><input type='checkbox' name='logoutonhide' id='logoutonhide' value='logoutonhide' onclick='setLogoutonhide();' /></td>
</tr>
<tr class='cl0'>
<td align='left'><span class='cfgheader'>Full-screen mode</span><br /><span class='cfgdesc'>In full-screen mode the phone's status bar is hidden. No effect on tablets.</span></td>
<td align='right'><input type='checkbox' name='fullscreen' id='fullscreen' value='fullscreen' onclick='setFullscreen();' /></td>
</tr>
<tr class='cl1'>
<td align='left'><span class='cfgheader'>Show zoom controls</span><br /><span class='cfgdesc'>Shows zoom control buttons while scrolling. Always shown if your phone does not support multi-touch.</span></td>
<td align='right'><input type='checkbox' name='showzoomcontrols' id='showzoomcontrols' value='showzoomcontrols' onclick='setShowzoomcontrols();' /></td>
</tr>
<tr class='cl0'>
<td align='left'><span class='cfgheader'>Remember page properties</span><br /><span class='cfgdesc'>Remembers the zoom level and scroll position of each visited page.</span></td>
<td align='right'><input type='checkbox' name='rememberpageproperties' id='rememberpageproperties' value='rememberpageproperties' onclick='setRememberpageproperties();' /></td>
</tr>
<tr class='cl1'>
<td align='left'><span class='cfgheader'>Nav horizontal tiles</span><br /><span class='cfgdesc'>Sets the width of the Nav space chart in tiles (11 for Premium accounts only).</span></td>
<td align='right'><select name='navsizehor' id='navsizehor' onchange='setNavsizehor();'><option value='3'>3</option><option value='5'>5</option><option value='7'>7</option><option value='9'>9</option><option value='11'>11</option></select></td>
</tr>
<tr class='cl0'>
<td align='left'><span class='cfgheader'>Nav vertical tiles</span><br /><span class='cfgdesc'>Sets the height of the Nav space chart in tiles (9 for Premium accounts only).</span></td>
<td align='right'><select name='navsizever' id='navsizever' onchange='setNavsizever();'><option value='3'>3</option><option value='5'>5</option><option value='7'>7</option><option value='9'>9</option></select></td>
</tr>
<tr class='cl1'>
<td align='left'><span class='cfgheader'>Partial page refreshes</span><br /><span class='cfgdesc'>Only refreshes sections of the Nav screen that have changed. Prerequisite for ship animation.</span></td>
<td align='right'><input type='checkbox' name='partialrefresh' id='partialrefresh' value='partialrefresh' onclick='setPartialrefresh();' /></td>
</tr>
<tr class='cl0'>
<td align='left'><span class='cfgheader'>Ship animation</span><br /><span class='cfgdesc'>Shows your ship's movement when changing location. &quot;Partial page refreshes&quot; required.</span></td>
<td align='right'><input type='checkbox' name='shipanimation' id='shipanimation' value='shipanimation' onclick='setShipanimation();' /></td>
</tr>
</tr>
<tr class='cl1'>
<td align='left'><span class='cfgheader'>Ship rotation</span><br /><span class='cfgdesc'>Makes ships face the direction they are heading.</span></td>
<td align='right'><input type='checkbox' name='shiprotation' id='shiprotation' value='shiprotation' onclick='setShiprotation();' /></td>
</tr>
<tr class='cl0'>
<td align='left'><span class='cfgheader'>Chat lines limit</span><br /><span class='cfgdesc'>Limits the amount of loaded chat lines to 10.</span></td>
<td align='right'><input type='checkbox' name='mobilechat' id='mobilechat' value='mobilechat' onclick='setMobilechat();' /></td>
</tr>
<tr class='cl1'>
<td align='left'><span class='cfgheader'>Clear cache</span><br /><span class='cfgdesc'>Empties the cache including page-specific zoom levels/scroll positions and clears any stored user/password.</span></td>
<td align='right'><input type='submit' name='clearcache' id='clearcache' value='Clear' onclick='doClearcache();return false;' /></td>
</tr>
</table>
</form>
<br/>
<br/>
<div style='text-align:center;'><a href='img.html' class='biglink'>&#8594; Image pack selection</a></div>
</td></tr>
</table>
</body>
</html>
<script type="text/javascript">
//<![CDATA[
init();
//]]>
</script>